package com.zzc.service;

import com.zzc.common.JsonResult;
import com.zzc.common.TableResult;
import com.zzc.pojo.ApiMapping;

/**
 * @author zhouzhou
 */
public interface ApiMappingService {


    /**
     * 查询全部信息
     * @param gatewayApiName
     * @param state
     * @param page
     * @param limit
     * @return
     */
    TableResult getApiMappingList(String gatewayApiName,Integer state,Integer page, Integer limit);


    /**
     * 批量删除
     * @param ids
     * @return
     */
    JsonResult deleteApiMappingById(Integer[] ids);

    /**
     * 新增
     * @param apiMapping
     * @return
     */
    JsonResult insertApiMapping(ApiMapping apiMapping);

    /**
     * 修改
     * @param apiMapping
     * @return
     */
    JsonResult updateByPrimaryKeySelective(ApiMapping apiMapping);
}